package com.boot.blog.service;

import com.boot.blog.dao.UserRespository;
import com.boot.blog.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @创建人:yewei
 * @创建时间: 2019/12/1 20:49
 * @描述
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserRespository userRespository;

    @Override
    public User checkUser(String userName, String passWord) {

        User userByUad = userRespository.findUserByUsernameAndPassword(userName, passWord);
        return userByUad;
    }
}
